#include <Max3421e.h>
#include <Usb.h>
#include <AndroidAccessory.h>

AndroidAccessory acc("isis re-direct",
"adk echoback",
"adk echoback",
"1.0",
"http://www.android.com",
"0000002212345678");

void setup()
{
  Serial.begin(115200);
  Serial.print("\r\nStart");

  acc.powerOn();
  Serial.print("\r\nacc.powerOn()");
}

void loop()
{
  if (acc.isConnected()) {
    byte msg[256];
    int len = acc.read(msg, 256, 1);
    if (0 < len) {
      acc.write(msg, len);
    }
  }
  else{
  }
  delay(30);
}






